<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- echarts的容器，高度是必写的, 宽度可选 -->
    <div id="main" style="height: 400px"></div>

    <script src="../libs/echarts-5.3.3.js"></script>
    <script src="./geojson/china_json.js"></script>
    <script>
      window.onload = function () {
        // registerMap：需要再setOption之前调用
        echarts.registerMap('中国', { geoJSON: china_json })
        var myChart = echarts.init(document.getElementById('main'))

        var option = {
          /* geo: {
            map: '中国',
          }, */

          series: [
            {
              type: 'map',
              map: '中国',
            },
          ],
        }

        myChart.setOption(option)
      }
    </script>
  </body>
</html>
